package com.powermanager.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by lqy on 16/7/5.
 */
public class TimeBean implements Parcelable {
    public LineBean line;
    public String type;
    public String onTime;
    public String offTime;

    public LineBean getLine() {
        return line;
    }

    public void setLine(LineBean line) {
        this.line = line;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getOnTime() {
        return onTime;
    }

    public void setOnTime(String onTime) {
        this.onTime = onTime;
    }

    public String getOffTime() {
        return offTime;
    }

    public void setOffTime(String offTime) {
        this.offTime = offTime;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeParcelable(this.line, flags);
        dest.writeString(this.type);
        dest.writeString(this.onTime);
        dest.writeString(this.offTime);
    }

    public TimeBean() {
    }

    protected TimeBean(Parcel in) {
        this.line = in.readParcelable(LineBean.class.getClassLoader());
        this.type = in.readString();
        this.onTime = in.readString();
        this.offTime = in.readString();
    }

    public static final Parcelable.Creator<TimeBean> CREATOR = new Parcelable.Creator<TimeBean>() {
        @Override
        public TimeBean createFromParcel(Parcel source) {
            return new TimeBean(source);
        }

        @Override
        public TimeBean[] newArray(int size) {
            return new TimeBean[size];
        }
    };
}
